package com.qianyu.project.mapper;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.qianyu.project.entity.DeviceOilUsed;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.qianyu.project.mapper.provider.mfy.DeviceOilUsedProvider;
import com.qianyu.project.mapper.provider.mfy.DeviceRequirePlanProvider;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.SelectProvider;
import org.springframework.stereotype.Repository;

import java.util.List;
import java.util.Map;

/**
 * <p>
 * 设备油耗表 Mapper 接口
 * </p>
 *
 * @author gs
 * @since 2021-01-30
 */
@Repository
public interface DeviceOilUsedMapper extends BaseMapper<DeviceOilUsed> {
    @SelectProvider(method = "Mylist",type = DeviceOilUsedProvider.class)
    IPage<DeviceOilUsed> Mylist(IPage<DeviceOilUsed> page,@Param("params") Map<String, String> params);
    @SelectProvider(method = "listNopage",type = DeviceOilUsedProvider.class)
    List<DeviceOilUsed> listNopage(Map<String, String> params);
}
